import os
import sys

def extract_search_listings(root_dir):
    files=[]
    extract_items(root_dir, files)
    print "\n".join(files)

def extract_items(root_dir, files):
    for (path, ds, fs) in os.walk(root_dir):
        for f in fs: files.append(os.path.join(path + "/" + f))

        for d in ds: extract_items(os.path.join(path + "/" + d), files)

if __name__ == "__main__":
    extract_search_listings(sys.argv[1])
